//引入组件库
var openHelper = require("helper/open");
var root=ui("$");
root.setMapping({
	"lableName.tag":"categoryId",
	"lableName.text":"name",
	"imgLogo.source":"pathImg",
	"cateBg.bgColor":"cateBg"
});

//查询获取分类下的商品数据
root.on("touch", '',3000,function(data) {
	var categoryId = ui("lableName").tag;
	if(categoryId == "0"){
		openHelper.open("source://view/mall/category/main.ui");//全部分类
	}else{
		openHelper.open("source://view/mall/search/mallSearch.ui",{categoryId:categoryId});//一级分类
	}
	
});
